package flc.ast.fragment;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import flc.ast.R;
import flc.ast.activity.DareActivity;
import flc.ast.activity.TruthActivity;
import flc.ast.databinding.FragmentGameBinding;
import stark.common.basic.base.BaseNoModelFragment;
import stark.common.basic.event.EventStatProxy;

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link GameFragment#newInstance} factory method to
 * create an instance of this fragment.
 */
public class GameFragment extends BaseNoModelFragment<FragmentGameBinding> {


    @Override
    protected int onCreate() {
        return R.layout.fragment_game;
    }

    @Override
    protected void initView() {
        EventStatProxy.getInstance().statEvent5(getActivity(), mDataBinding.event5Container);

        mDataBinding.rlTruth.setOnClickListener(this);
        mDataBinding.rlDare.setOnClickListener(this);
    }

    @Override
    protected void onClickCallback(View v) {
        switch (v.getId()) {
            case R.id.rlTruth://真心话
                startActivity(TruthActivity.class);
                break;
            case R.id.rlDare://大冒险
                startActivity(DareActivity.class);
                break;
        }
    }

    @Override
    protected void initData() {

    }
}